﻿<customWindow:BlackStyleChildWindow x:Class="Jade.Tools.SL.Windows.ChildCustomDialog"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:customWindow="http://www.sebastien-alves.fr/jadeToolsSLWindows" 
           x:ClassModifier="internal"
           Width="350" Height="130" >
    <Grid x:Name="grid">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>

        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox">
                <GradientStop Color="#FF12475D" Offset="0.014"/>
                <GradientStop Color="Black" Offset="1"/>
                <GradientStop Color="#FE28799F" Offset="0.512"/>
                <GradientStop Color="#FE174E66" Offset="0.573"/>
                <GradientStop Color="#FE16333F" Offset="0.293"/>
                <GradientStop Color="#FE0F1B20" Offset="0.78"/>
            </LinearGradientBrush>
        </Grid.Background>

        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <Image x:Name="imgMessage" Source="Images/messagebox_info.png" Width="70"  HorizontalAlignment="Left" Stretch="Fill" Height="70"/>
            <TextBlock x:Name="txMessage" Text="Vous devez d'abord supprimer toutes les items liées à cet item principal !"  
    			TextWrapping="Wrap" Foreground="White" VerticalAlignment="Center" FontSize="12" TextTrimming="None" Width="265" />
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="0,1,7,5" VerticalAlignment="Center">
            <Button x:Name="BtOk" Content="OK" HorizontalAlignment="Right" Width="45" Margin="0,0,5,0" Visibility="Collapsed" Click="BtOk_Click" />
            <Button x:Name="BtCancel" Content="Annuler" Width="58" Margin="0,0,5,0" Visibility="Collapsed" Click="BtCancel_Click"/>
            <Button x:Name="BtYes" Content="Oui" Width="45" Margin="0,0,5,0" Click="BtYes_Click"/>
            <Button x:Name="BtNo" Content="Non" Width="45" Margin="0,0,5,0" Click="BtNo_Click"/>
            <Button x:Name="BtCancel2" Content="Annuler" Width="58" Click="BtCancel2_Click"/>
        </StackPanel>
    </Grid>
</customWindow:BlackStyleChildWindow>